<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8"/>
    <title>test form</title>
</head>
<body>
    <action="/" method="post">
        <fieldset> 
            <legend style="text-align: center;">login and register</legend>
            <label for="user">用户:</label>
            <input type="text" id="user" name="user" required/><br/>
            <label for="password">密码:</label>
            <input type="password" id="password" name="password" required/><br/>
            <label>性别:</label>
            <input type="radio" id="male" name="sex" value="male" checked/>
            <label for="male">男</label>
            <input type="radio" id="female" name="sex" value="female">
            <label for="female">女</label><br/>
            <label for="country">国家</label>
            <select id="country" name="country">
                <option value="china">中国</option>
                <option value="american">美国</option>
                <option value="japan">日本</option>
                <option value="french">法国</option>
            </select>
            <input type="submit" value="登录"/>
     </fieldset>
    </form>
</body>
</html>